<?php

/**
 * 竞拍分类
 *
 * Created by PhpStorm.
 * User: evan
 * Date: 16/9/14
 * Time: 下午11:13
 */
class Cate extends MY_Public_Api_Controller
{
    public function index()
    {
        $page  = (int)$this->input->get_post('page');
        $limit = (int)$this->input->get_post('limit');


        $this->load->service('auction/service_auction_cate');
        $data = $this->service_auction_cate->index($page, $limit);


        $this->json_output($data['data'], $data['status']);
    }


    public function detail()
    {
        $cid = (int)$this->input->get_post('cid');


        $this->load->service('auction/service_auction_cate');
        $data = $this->service_auction_cate->detail($cid);


        $this->json_output($data['data'], $data['status']);
    }
}